package com.zyyx.course_manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zyyx.course_manage.mapper.CourseManageMapper;
import com.zyyx.course_manage.domain.CourseManage;
import com.zyyx.course_manage.service.ICourseManageService;

/**
 * course_manageService业务层处理
 * 
 * @author 张子航
 * @date 2025-01-11
 */
@Service
    public class CourseManageServiceImpl implements ICourseManageService
{
    @Autowired
    private CourseManageMapper courseManageMapper;

    /**
     * 查询course_manage
     * 
     * @param courseManageId course_manage主键
     * @return course_manage
     */
    @Override
    public CourseManage selectCourseManageByCourseManageId(Long courseManageId)
    {
        return courseManageMapper.selectCourseManageByCourseManageId(courseManageId);
    }

    /**
     * 查询course_manage列表
     * 
     * @param courseManage course_manage
     * @return course_manage
     */
    @Override
    public List<CourseManage> selectCourseManageList(CourseManage courseManage)
    {
        return courseManageMapper.selectCourseManageList(courseManage);
    }

    /**
     * 新增course_manage
     * 
     * @param courseManage course_manage
     * @return 结果
     */
    @Override
    public int insertCourseManage(CourseManage courseManage)
    {
        return courseManageMapper.insertCourseManage(courseManage);
    }

    /**
     * 修改course_manage
     * 
     * @param courseManage course_manage
     * @return 结果
     */
    @Override
    public int updateCourseManage(CourseManage courseManage)
    {
        return courseManageMapper.updateCourseManage(courseManage);
    }

    /**
     * 批量删除course_manage
     * 
     * @param courseManageIds 需要删除的course_manage主键
     * @return 结果
     */
    @Override
    public int deleteCourseManageByCourseManageIds(Long[] courseManageIds)
    {
        return courseManageMapper.deleteCourseManageByCourseManageIds(courseManageIds);
    }

    /**
     * 删除course_manage信息
     * 
     * @param courseManageId course_manage主键
     * @return 结果
     */
    @Override
    public int deleteCourseManageByCourseManageId(Long courseManageId)
    {
        return courseManageMapper.deleteCourseManageByCourseManageId(courseManageId);
    }
}
